<template>
	<view calss="container">
		<view class="tui-product-img tui-radius-all">
			<rich-text :nodes="content"></rich-text>
		</view>
		<view class="tui-safearea-bottom"></view>
	</view>
</template>

<script>
	import ConfigContent from './config_content-model.js'   
	var config_content = new ConfigContent();  
	export default {
		data() {
			return {
				content:''
			}
		},
		onLoad: function(options) {
			var that = this;
			that.config_content();
		},
		methods: {
			
			config_content(){
				var that = this;
				config_content.content((res)=>{
					if(res.code == 8888){
						that.content = res.data.content.replace(/\<img/gi, '<img style="max-width:100%;height:auto" ');
					}
				})
			}
		}
	}
</script>

<style>
	@import url("config_content.css");
</style>
